package com.example.demo.demo.dao;

import com.example.demo.demo.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Queue;

/**
 * TODO
 *
 * @author My
 * @date 2020/12/19 15:15
 */
@Repository
public interface IStudentDao extends JpaRepository<Student, String> {


    @Query(value = "select * from Student where sName = ?", nativeQuery = true)
    List<Student> listByCondition(String name);


}

